package com.zbec.mdrs.entity;



import com.zbec.framework.core.entity.IdEntity;
import com.zbec.mdrs.entity.history.History;

import javax.persistence.*;

@MappedSuperclass
public abstract class RecordEntity extends IdEntity {

    protected String source;
    protected History history;
    protected String recordStatus;
    protected String reportStatus;
    protected String existError;
    protected String errorDesc;
    protected String missedField;
    protected String skipInd;
    protected Long recordId;
    protected Long orgId;
    protected boolean isAdd;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "history_id")
    public History getHistory() {
        return history;
    }

    public void setHistory(History history) {
        this.history = history;
    }



    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }
    
    public String getRecordStatus() {
        return recordStatus;
    }

    public void setRecordStatus(String recordStatus) {
        this.recordStatus = recordStatus;
    }

    public String getReportStatus() {
        return reportStatus;
    }

    public void setReportStatus(String reportStatus) {
        this.reportStatus = reportStatus;
    }

    public String getExistError() {
        return existError;
    }

    public void setExistError(String existError) {
        this.existError = existError;
    }

    public String getErrorDesc() {
        return errorDesc;
    }

    public void setErrorDesc(String errorDesc) {
        this.errorDesc = errorDesc;
    }

    public String getMissedField() {
        return missedField;
    }

    public void setMissedField(String missedField) {
        this.missedField = missedField;
    }

    @Transient
    public String getSkipInd() {
        return skipInd;
    }

    public void setSkipInd(String skipInd) {
        this.skipInd = skipInd;
    }

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    @Transient
    public boolean isAdd() {
        return isAdd;
    }

    public void setAdd(boolean add) {
        isAdd = add;
    }
}
